<template>
  <div class="left-container">
    <h3>left组件</h3>
    <hr />
    <button @click="getInfo">发起get请求</button>
  </div>
</template>

<script>
// import axios from "axios";

export default {
  methods: {
    async getInfo() {
      //   console.log("请求了");
      const { data: res } = await this.$http.get("/test/learn-web");
      console.log(res);
    },
  },
};
</script>

<style lang='less' scoped>
.left-container {
  background-color: orange;
  min-height: 200px;
  flex: 1;
}
</style>